<?php

namespace app\common\validate\Business;

use think\Validate;

class Source extends Validate
{
    protected $rule = [
        'name' => ['require','unique:business_source'],
    ];

    // 错误提示信息
    protected $message = [
        'name.require' => '客户来源必填',
        'name.unique' => '客户来源已存在',
    ];
}